package com.shoe.mapper;

import com.shoe.pojo.AdminAftersalePojo;
import com.shoe.vo.UserAftShowVo;
import com.shoe.vo.UserAftersaleVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserAftersaleMapper {

    List<UserAftersaleVo> selectUserAftersaleByCondition(@Param("uId") Integer userId, @Param("aftsaleSolve") String aftersaleSolve);

    UserAftShowVo selectUAftShow(@Param("uId") Integer userId, @Param("ordId") Integer orderId);

    int addUAft(@Param("ordId") Integer orderId, @Param("aftSaSolve") String aftSaleSolve, @Param("aftReq") String aftRequi, @Param("nDay") String nowDay);

    List<AdminAftersalePojo> selectUAftHave(@Param("ordId") Integer aftOrderId);
}
